This page last changed on Dec 05, 2005 by bowens.

Can GeoServer return shapefiles?

Yes it can. In the WFS URL you need to set the OUTPUTFORMAT parameter to SHAPE.
Here is an example:

http://localhost:8080/geoserver/wfs?
request=getfeature&
service=wfs&
version=1.0.0&
typename=states&
outputformat=SHAPE

But Where do the shapfile go after the submit?

I get

java.io.FileNotFoundException: C:\Program Files\Tomcat5states.shp 

Some other settings somewhere? 

Posted by at May 02, 2006 13:43

If I check GetCapabilities I find no outputformat SHAPE. I do see an outputformat SHAPE-ZIP.

If I select this one i receive an empty file.

Posted by at May 05, 2006 05:10

I got this when I tried to return a shapefile on Geoserver 1.3.0:

http://localhost:8080/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=states&outputformat=SHAPE 

<ServiceException>
output format: SHAPE not supported by geoserver  
</ServiceException>

Posted by khudak at Sep 13, 2006 14:51

Try this (notice the '-ZIP' at the end of the url):

http://localhost:8080/geoserver/wfs?request=getfeature&service=wfs&version=1.0.0&typename=states&outputformat=SHAPE-ZIP

For me, it works.

Posted by otroccaz at Oct 03, 2006 06:11
Document generated by Confluence on Jan 16, 2008 23:27